package com.microservices.auth.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serial;
import java.util.Date;

/**
 * 用户表
 *
 * @author daiqiaohong
 * @since 2025年1月13日
 */
@Getter
@Setter
@TableName("user")
@Schema(description = "用户表")
public class UserEntity extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableField("username")
    @Schema(description = "用户账号")
    private String username;

    @TableField("password")
    @Schema(description = "密码")
    private String password;

    @TableField("status")
    @Schema(description = "状态（0正常 1停用）")
    private int status;

    @TableField("remark")
    @Schema(description = "备注")
    private String remark;

    @TableField("login_ip")
    @Schema(description = "最后登录IP")
    private String loginIp;

    @TableField("login_date")
    @Schema(description = "最后登录时间")
    private Date loginDate;

}
